home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_bas
/
nkbvc11.zip
/
KNOB.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-11
|
4KB
|
205 lines
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "knob.h"
/////////////////////////////////////////////////////////////////////////////
// CKnob
IMPLEMENT_DYNCREATE(CKnob, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CKnob properties
unsigned long CKnob::GetNeedleColor()
{
unsigned long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CKnob::SetNeedleColor(unsigned long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
unsigned long CKnob::GetBorderColor()
{
unsigned long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void CKnob::SetBorderColor(unsigned long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
short CKnob::GetMin()
{
short result;
GetProperty(0x3, VT_I2, (void*)&result);
return result;
}
void CKnob::SetMin(short propVal)
{
SetProperty(0x3, VT_I2, propVal);
}
short CKnob::GetMax()
{
short result;
GetProperty(0x4, VT_I2, (void*)&result);
return result;
}
void CKnob::SetMax(short propVal)
{
SetProperty(0x4, VT_I2, propVal);
}
short CKnob::GetPos()
{
short result;
GetProperty(0x5, VT_I2, (void*)&result);
return result;
}
void CKnob::SetPos(short propVal)
{
SetProperty(0x5, VT_I2, propVal);
}
long CKnob::GetOuterBevel()
{
long result;
GetProperty(0x6, VT_I4, (void*)&result);
return result;
}
void CKnob::SetOuterBevel(long propVal)
{
SetProperty(0x6, VT_I4, propVal);
}
long CKnob::GetInnerBevel()
{
long result;
GetProperty(0x7, VT_I4, (void*)&result);
return result;
}
void CKnob::SetInnerBevel(long propVal)
{
SetProperty(0x7, VT_I4, propVal);
}
short CKnob::GetOuterBevelWidth()
{
short result;
GetProperty(0x8, VT_I2, (void*)&result);
return result;
}
void CKnob::SetOuterBevelWidth(short propVal)
{
SetProperty(0x8, VT_I2, propVal);
}
short CKnob::GetInnerBevelWidth()
{
short result;
GetProperty(0x9, VT_I2, (void*)&result);
return result;
}
void CKnob::SetInnerBevelWidth(short propVal)
{
SetProperty(0x9, VT_I2, propVal);
}
short CKnob::GetBorderWidth()
{
short result;
GetProperty(0xa, VT_I2, (void*)&result);
return result;
}
void CKnob::SetBorderWidth(short propVal)
{
SetProperty(0xa, VT_I2, propVal);
}
unsigned long CKnob::GetShadowColor()
{
unsigned long result;
GetProperty(0xb, VT_I4, (void*)&result);
return result;
}
void CKnob::SetShadowColor(unsigned long propVal)
{
SetProperty(0xb, VT_I4, propVal);
}
unsigned long CKnob::GetHiliteColor()
{
unsigned long result;
GetProperty(0xc, VT_I4, (void*)&result);
return result;
}
void CKnob::SetHiliteColor(unsigned long propVal)
{
SetProperty(0xc, VT_I4, propVal);
}
long CKnob::GetOrientation()
{
long result;
GetProperty(0xd, VT_I4, (void*)&result);
return result;
}
void CKnob::SetOrientation(long propVal)
{
SetProperty(0xd, VT_I4, propVal);
}
unsigned long CKnob::GetFaceColor()
{
unsigned long result;
GetProperty(0xe, VT_I4, (void*)&result);
return result;
}
void CKnob::SetFaceColor(unsigned long propVal)
{
SetProperty(0xe, VT_I4, propVal);
}
OLE_COLOR CKnob::GetBackColor()
{
OLE_COLOR result;
GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
return result;
}
void CKnob::SetBackColor(OLE_COLOR propVal)
{
SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CKnob operations
void CKnob::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}